<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>Document</title>
<script src="/CHENG-ZAO-ZAO/js/vue.js"></script>
</head>
<body>
     <div id="app">
        <button v-on:click.once="clickBtn">只触发一次</button>   
    </div>
<br>
   <script>
       let app = new Vue({
        el:"#app",
        data:{
             
        },
        methods:{
            clickBtn:function(){
                console.log('按钮被点击');
            }
        }
       })
    </script>
</body>
</html>